﻿<phone:PhoneApplicationPage 
    x:Class="QuickTasks.FavoriteEmails"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="728" d:DesignWidth="480"
    shell:SystemTray.IsVisible="False"
    Loaded="PhoneApplicationPage_Loaded">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot">
        <Grid.Background>
            <ImageBrush ImageSource="/QuickTaskBgImages/BackGround5.png"/>
        </Grid.Background>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel Orientation="Horizontal"  Grid.Row="0" Margin="12,17,0,28">
            <TextBlock x:Name="ApplicationTitle"  Text="QUICK TASKS -SELECT EMAIL IDS" Style="{StaticResource PhoneTextNormalStyle}"/>
        </StackPanel>

        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">

            <ListBox x:Name="lbxEmailIds" Margin="12,0,0,0" >
                    <ListBox.ItemContainerStyle>
                        <Style TargetType="ListBoxItem">
                            <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
                        </Style>
                    </ListBox.ItemContainerStyle>
                    <ListBox.ItemsPanel>
                        <ItemsPanelTemplate>
                            <StackPanel/>
                        </ItemsPanelTemplate>
                    </ListBox.ItemsPanel>
                    <ListBox.ItemTemplate>
                        <DataTemplate>
                          
                            <StackPanel >
                            <TextBlock  Text="{Binding Name}" Foreground="White" FontSize="35" ></TextBlock>

                                    <StackPanel   x:Name="stkchk" Margin="10,0,0,0">
                                    <TextBlock FontSize="26" Text="{Binding ptype}" Foreground="{StaticResource PhoneAccentBrush}" Visibility="{Binding pvis}"></TextBlock>
                                        <CheckBox  FontSize="26" Content="{Binding Personal}" Visibility="{Binding pvis}" Tag="{Binding ptype1}"/>

                                    <TextBlock FontSize="26" Foreground="{StaticResource PhoneAccentBrush}" Text="{Binding wtype}" Visibility="{Binding wvis}"></TextBlock>
                                        <CheckBox  FontSize="26" Content="{Binding mwork}" Visibility="{Binding wvis}" Tag="{Binding wtype1}"/>

                                    <TextBlock FontSize="26" Text="{Binding otype}" Foreground="{StaticResource PhoneAccentBrush}" Visibility="{Binding ovis}"></TextBlock>
                                        <CheckBox  FontSize="26" Content="{Binding other}" Visibility="{Binding ovis}" Tag="{Binding otype1}"/>


                                    </StackPanel>
                            </StackPanel>
                             
                        </DataTemplate>
                    </ListBox.ItemTemplate>
                </ListBox>



           
        </Grid>
        <StackPanel Name="adstackpanel" Grid.Row="2" VerticalAlignment="Bottom" Margin="-15,32,0,0"></StackPanel>
    </Grid>
    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/Images/Messagesave.png" Text="save" Click="ApplicationBarIconButton_Click"/>
            <!--<shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="Button 2"/>-->
            <!--<shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="MenuItem 1"/>
                <shell:ApplicationBarMenuItem Text="MenuItem 2"/>
            </shell:ApplicationBar.MenuItems>-->
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>

</phone:PhoneApplicationPage>
